package com.chinacoal.microservice.api.model;

import javax.validation.constraints.NotBlank;

import com.chinacoal.microservice.model.wofkflow.ApproveParam;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ApproveTaskParam extends ApproveParam{
	
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value ="目标系统编码", example="与应用中心匹配", required=true)
	@NotBlank(message = "目标系统编码不能为空: sysCode")
	private String sysCode;
	
	@ApiModelProperty(value ="业务主键", example="", required=true)
	@NotBlank(message = "业务Id不能为空: businessId")
	private String businessId;
	
	@ApiModelProperty(value ="业务编码", example="", required=true)
	@NotBlank(message = "业务编码不能为空: bizCode")
	private String bizCode;
	
	@ApiModelProperty(value ="用户编码", example="", required=true)
	@NotBlank(message = "用户编码不能为空: userCode")
	private String userCode;
	
	@ApiModelProperty(value ="统一待办中心的待办id", example="", required=false)
	private String sysTaskId;

	@ApiModelProperty(value ="下一审批人", example="", required=false)
	private String nextUser;

	@ApiModelProperty(value ="流程实例状态", example="", required=false)
	private String instanceCurrentState;
}
